#include "car.h"
#include <string>
#include <iostream>
using namespace std;

car::car(void)
{
	this->brand = "*******";
	this->year = 0;
	this->price = -1;
}
car::~car(void)
{
}
car::car(string b, int y, double p)
{
	this->brand = b;
	this->year = y;
	this->price = p;
}
void car::cPrint()
{
	cout << "Brand:" << brand << "  Year:" << year << "  Cost:" << price << "$\n";
}
void car::cRead()
{
	cout << "\nBrand:";
	cin >> brand;
	cout << "\nYear:";
	cin >> year;
	cout << "\nPrice:";
	cin >> price;
	cout << "\n";
}